<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
[#assign path = var_contextpath + var_resrootpath + "/" + var_syscfg.sscTemplate/]
[#include "../inc/user/userOrderList.html"]

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta name="Generator" content="ECSHOP v2.7.2" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="Keywords" content="" />
	<meta name="Description" content="" />
	<title>用户中心-我的订单-详情</title>
	<link rel="shortcut icon" href="favicon.ico" />
	<link rel="icon" href="animated_favicon.gif" type="image/gif" />
	<link rel="stylesheet" type="text/css" href="${path}/css/style.css" />
</head>
<body>
[#include "../inc/common/head.html"]
<div class="block box">
 <div id="ur_here">
  当前位置: <a href="${var_contextpath}/index.xhtml">首页</a> <code>&gt;</code> 用户中心 </div>
</div>
<div class="blank"></div>
<div class="block clearfix">
  [#include "../inc/common/leftMenu.html"]
  <div class="AreaR">
    <div class="box">
     <div class="box_1">
      <div class="userCenterBox boxCenterList clearfix" style="_height:1%;">
        <h5><span>订单状态</span></h5>
        <div class="blank"></div>
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
           <tr>
              <td width="15%" align="right" bgcolor="#ffffff">订单号：</td>
              <td align="left" bgcolor="#ffffff">
          	     <font>${(var_orderinfo.boiOsn)! ""} </font>
          	     <a href="" class="f6" style="display:none;">[发送/查看商家留言]</a>
		      </td>
           </tr>
           <tr>
              <td align="right" bgcolor="#ffffff">订单状态：</td>
              <td align="left" bgcolor="#ffffff">
          	     [#-- 订单状态--]
		      	 [#assign boiOrder = ((var_orderinfo.boiOrder ? number)! 0)]
		      	 [#if boiOrder == 0]未确认[#elseif boiOrder == 1]已确认[#elseif boiOrder == 2]已取消[#elseif boiOrder == 3]已结单[#elseif boiOrder == 4]已失效[/#if]&nbsp;&nbsp;&nbsp;&nbsp;
         	  </td>
           </tr>
           <tr>
	          <td align="right" bgcolor="#ffffff">付款状态：</td>
	          <td align="left" bgcolor="#ffffff">
	          	 [#-- 付款状态--]
			   	 [#assign boiPay = ((var_orderinfo.boiPay ? number)! 0)]
	          	 [#if boiPay == 0]未付款[#elseif boiPay == 1]已付款[#elseif boiPay == 2]已退款[/#if]&nbsp;&nbsp;&nbsp;&nbsp;
          	 </td>
           </tr>
           <tr>
	          <td align="right" bgcolor="#ffffff">配送状态：</td>
	          <td align="left" bgcolor="#ffffff">
	          	 [#-- 配送状态--]
			   	 [#assign boiShip = ((var_orderinfo.boiShip ? number)! 0)]
	          	 [#if boiShip == 0]未配送[#elseif boiShip == 1]配货中[#elseif boiShip == 2]发货中[#elseif boiShip == 3]已发货[#elseif boiShip == 4]已收货[#elseif boiShip == 5]已退货[#elseif boiShip == 6]无法联系[/#if]&nbsp;&nbsp;&nbsp;&nbsp;
	          </td>
           </tr>
        </table>
        <div class="blank"></div>
        <h5>
        	<span>商品列表</span>
        	<a href="" class="f6" style="display:none;">放回购物车</a>
        </h5>
        <div class="blank"></div>
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr>
            <th width="25%" align="center" bgcolor="#ffffff">商品名称</th>
            <th width="26%" align="center" bgcolor="#ffffff">属性</th>
            <th width="20%" align="center" bgcolor="#ffffff">商品价格</th>
            <th width="9%" align="center" bgcolor="#ffffff">购买数量</th>
            <th width="20%" align="center" bgcolor="#ffffff">小计</th>
          </tr>
          [#-- 商品总价 --]
          [#assign goodsTotal = 0 /]
          
          [#if (var_orderGoods ? size) > 0]
			[#list var_orderGoods as data] 
				[#assign goodsTotal = (goodsTotal + data.bogTotal) /]
				<tr>
					<td bgcolor="#ffffff">
		               <a href="${var_contextpath}/goods.xhtml?id=${data.bogGid}" target="_blank" class="f6">${data.bogName}</a>
		            </td>
		            <td align="left" bgcolor="#ffffff">${data.bogAttribute}</td>
		            <td align="right" bgcolor="#ffffff">￥${data.bogPrice}元</td>
		            <td align="center" bgcolor="#ffffff">${data.bogNumber}</td>
		            <td align="right" bgcolor="#ffffff">￥${data.bogTotal}元</td>
				</tr>
			[/#list]	
		  [/#if]
          <tr>
             <td colspan="5" bgcolor="#ffffff" align="right">
            	商品总价: ￥${goodsTotal}元            
            </td>
          </tr>
        </table>
        <div class="blank"></div>
        <h5><span>费用总计</span></h5>
        <div class="blank"></div>
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
           <tr>
              <td align="right" bgcolor="#ffffff">
                  商品总价: ￥${var_orderinfo.boiGpay}元 + 配送费用: ￥${var_orderinfo.boiSpay}元 [#if (var_orderinfo.boiCouponpay)??]- 代金券抵用: ￥${var_orderinfo.boiCouponpay}元[/#if]                                                                              </td>
            </tr>
            <tr>
              <td align="right" bgcolor="#ffffff"></td>
            </tr>
            <tr>
              <td align="right" bgcolor="#ffffff">应付款金额: ￥${var_orderinfo.boiTpay}元            </td>
            </tr>
         </table>
         <div class="blank"></div>
         <h5><span>收货人信息</span></h5>
         <div class="blank"></div>
         [#if (var_orderinfo.boiOrder == 0) && (var_orderinfo.boiPay == 0) && (var_orderinfo.boiShip == 0)]
         	<form name="userAddrForm">
         		<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
		            <tr>
		              <td width="15%" align="right" bgcolor="#ffffff">收货人姓名：</td>
		              <td width="35%" align="left" bgcolor="#ffffff">
		              	<input id="boiConsignee" type="text" class="inputBg" value="${var_orderinfo.boiConsignee}" size="25" />
		              </td>
		              <td width="15%" align="right" bgcolor="#ffffff" >邮政编码：</td>
		              <td width="35%" align="left" bgcolor="#ffffff">
		              	<input id="boiZipcode" type="text" class="inputBg" value="${(var_orderinfo.boiZipcode)! ''}" size="25" />
		              </td>
		            </tr>
		            <tr>
		              <td align="right" bgcolor="#ffffff">详细地址：</td>
		              <td colspan="3" align="left" bgcolor="#ffffff">
		              	<input id="boiDetail" type="text" class="inputBg" value="${(var_orderinfo.boiDetail)! ''}" size="25" />
		              </td>
		            </tr>
		            <tr>
		              <td align="right" bgcolor="#ffffff">固定电话：</td>
		              <td align="left" bgcolor="#ffffff">
		              	<input id="boiPhone" type="text" class="inputBg" value="${(var_orderinfo.boiPhone)! ''}" size="25" />
		              </td>
		              <td align="right" bgcolor="#ffffff">移动电话：</td>
		              <td align="left" bgcolor="#ffffff">
		              	<input id="boiMobile" type="text" class="inputBg" value="${(var_orderinfo.boiMobile)! ''}" size="25" />
		              </td>
		            </tr>
		            <tr>
		              <td align="right" bgcolor="#ffffff">送货时间：</td>
		              <td colspan="3" align="left" bgcolor="#ffffff">
		              	<input id="boiBest" type="text" class="inputBg" value="${(var_orderinfo.boiBest)! ''}" size="25" />
		              </td>
		            </tr>
		            <tr>
		              <td colspan="4" align="center" bgcolor="#ffffff">
		              	<input type="hidden" id="boiId" value="${var_orderinfo.boiId}"/>
                  		<input type="button" class="bnt_blue_2" value="更新收货人信息" 
                  			onclick="user_updateConsignee();"/>
		              </td>
		            </tr>
		        </table>
         	</form>
         [#else]
         	<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
	            <tr>
	              <td width="15%" align="right" bgcolor="#ffffff">收货人姓名：</td>
	              <td width="35%" align="left" bgcolor="#ffffff">${var_orderinfo.boiConsignee}</td>
	              <td width="15%" align="right" bgcolor="#ffffff" >邮政编码：</td>
	              <td width="35%" align="left" bgcolor="#ffffff">${(var_orderinfo.boiZipcode)! ""}</td>
	            </tr>
	            <tr>
	              <td align="right" bgcolor="#ffffff">详细地址：</td>
	              <td colspan="3" align="left" bgcolor="#ffffff">${(var_orderinfo.boiDetail)! ""}</td>
	            </tr>
	            <tr>
	              <td align="right" bgcolor="#ffffff">固定电话：</td>
	              <td align="left" bgcolor="#ffffff">${(var_orderinfo.boiPhone)! ""} </td>
	              <td align="right" bgcolor="#ffffff">移动电话：</td>
	              <td align="left" bgcolor="#ffffff">${(var_orderinfo.boiMobile)! ""}</td>
	            </tr>
	            <tr>
	              <td align="right" bgcolor="#ffffff" >送货时间：</td>
	              <td colspan="3" align="left" bgcolor="#ffffff">${(var_orderinfo.boiBest)! ""}</td>
	            </tr>
	        </table>
         [/#if]
        <div class="blank"></div>
        <h5><span>支付方式</span></h5>
        <div class="blank"></div>
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
           <tr>
              <td bgcolor="#ffffff">
                  所选支付方式: ${var_orderinfo.boiPaymodename}。应付款金额: <strong>￥${var_orderinfo.boiTpay}元</strong><br />
              </td>
           </tr>
           <tr>
              <td bgcolor="#ffffff" align="right"></td>
           </tr>
        </table>
        <div class="blank"></div>
        <h5><span>其它信息</span></h5>
        <div class="blank"></div>
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
           <tr>
              <td width="15%" align="right" bgcolor="#ffffff">配送方式：</td>
              <td colspan="3" width="85%" align="left" bgcolor="#ffffff">${var_orderinfo.boiDeliverymode}</td>
           </tr>
           <tr>
              <td width="15%" align="right" bgcolor="#ffffff">支付方式：</td>
              <td colspan="3" align="left" bgcolor="#ffffff">${var_orderinfo.boiPaymodename}</td>
           </tr>
        </table>
      </div>
     </div>
    </div>
  </div>
</div>
<div class="blank"></div>
[#include "../inc/common/bottomNav.html"]
[#include "../inc/common/footer.html"]

</body>
</html>
